{include file="common/header.tpl"}
<section class="main">
	<nav class="left-col">{include file="common/navi-system.tpl"}</nav>
    <article class="right-col">
    	<h2><a href="{$smarty.const.HOST_BACKEND}content/index">Nội dung site tĩnh</a> &raquo; Thêm mới</h2></li>                    
        <form name="frmAdd" id="frmAdd" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}content/save" class="ui">
        	<ul>
                {if isset($smarty.session.CONTENT_ERROR)}
                    <li class="error">
                        <span class="error">{$smarty.session.CONTENT_ERROR}</span>
                    </li>
                {/if}                
                <li>
                    <label for="ppage">Page <span class="required">*</span>:</label>
                    <div class="txt">
                        <input type="text" name="ppage" id="ppage" value="{if isset($smarty.session.CONTENT_POST.ppage)}{$smarty.session.CONTENT_POST.ppage}{/if}" />
                    </div>
                </li>
                <li>
                    <label for="psection">Section:</label>
                    <div class="txt">
                        <input type="text" name="psection" id="psection" value="{if isset($smarty.session.CONTENT_POST.psection)}{$smarty.session.CONTENT_POST.psection}{/if}" />
                    </div>
                </li>
                <li>
                    <label for="pname">Tiêu đề <span class="required">*</span>:</label>
                    <div class="txt">
                        <input type="text" name="pname" id="pname" value="{if isset($smarty.session.CONTENT_POST.pname)}{$smarty.session.CONTENT_POST.pname}{/if}" />
                    </div>
                </li>
                <li>
                    <label for="pimage">Hình:</label>
                    <div class="txt">
                        <input type="file" name="pimage" id="pimage" value="" />
                    </div>
                </li>
                <li>
                    <label for="pcontent">Nội dung<span class="required">*</span>:</label>
                    <div class="area">
                    	<textarea rows="1" cols="1" name="pcontent" id="pcontent">{$smarty.session.CONTENT_POST.pcontent}</textarea>
                    </div>
                </li>
                <li>
                    <button type="submit"><strong>Lưu dữ liệu</strong></button>
                    <button type="reset"><strong>Nhập lại</strong></button>
                </li>
            </ul>
        </form>
   	</article>
</section>           	
{include file="common/footer.tpl"}